package com.czjtxy.extraTerm.dao;

import com.czjtxy.extraTerm.entity.DO.Temployee;
import com.czjtxy.extraTerm.entity.VO.TemployeeVO;

import java.sql.SQLException;
import java.util.List;

/**
 * @program: staff-house
 * @author: MingYi
 * @create: 2021/07/01 16:10
 */
public interface TemployeeDao extends BaseDao {
    List<TemployeeVO> getAll() throws SQLException, ClassNotFoundException;

    List<TemployeeVO> getPart(Temployee temployee) throws SQLException, ClassNotFoundException;

    TemployeeVO getOne(int id) throws SQLException, ClassNotFoundException;

    void updateEmployee(Temployee temployee) throws SQLException, ClassNotFoundException;

    void deleteEmployee(int id) throws SQLException, ClassNotFoundException;

    void addEmployee(Temployee temployee) throws SQLException, ClassNotFoundException;
}
